<?php

namespace App\Http\Requests\Api;

class ResumeConnRequest extends ApiRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'id' => 'bail|required|integer',
            'mobile' => 'bail|required|mobile_verification',
            'email' => 'email',
            'qq' => 'check_qq',
        ];
    }

    public function attributes()
    {
        return [
            'mobile' => '手机',
            'email' => '邮箱',
        ];
    }

    public function messages()
    {
        return array_merge(parent::messages(),[
            'mobile.mobile_verification'=>'请输入正确的手机号码',
            'qq.check_qq'=>'请输入正确的qq号码',
        ]);
    }
}
